package com.alex.solution.webPrint;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 用于模拟web打印的后台
 * @author gaojun
 *
 */
public class WebPrintServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.setAttribute("content", "1;2;3");
		getServletContext().getRequestDispatcher("/webPrint/printTpl.jsp").forward(req, resp);
	}
	
	
}
